package com.example.remoteassistance;

import java.util.List;
import java.util.Map;

//数据包
public class MessagePacket {

    //命令信息
    private String msg;
    //主机id
    private String mid;
    //从机id
    private String sid;
    //列表数据
    private List<String> list;
    //集合数据
    private Map<String, Integer> map;

    public MessagePacket() {

    }

    public MessagePacket(String msg, String mid, String sid, List<String> list, Map<String, Integer> map) {
        this.msg = msg;
        this.mid = mid;
        this.sid = sid;
        this.list = list;
        this.map = map;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMid(String mid) {
        this.mid = mid;
    }

    public String getMid() {
        return mid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getSid() {
        return sid;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public List<String> getList() {
        return list;
    }

    public void setMap(Map<String, Integer> map) {
        this.map = map;
    }

    public Map<String, Integer> getMap() {
        return map;
    }
}
